package com.ybu.mapper;

import com.ybu.pojo.entity.Address;
import com.ybu.pojo.vo.AddressVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressMapper {


    //添加地址
    Integer insert(Address address);

    //通过用户ID查询所有地址
    List<Address> selectAddressByUserId(Integer userId);

    //通过ID查询当前用户的地址数量
    Integer selectAddressCountByUserId(Integer userId);
}
